package UserBL;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.ArrayList;

import vo.StudentVO;
import vo.TeacherVO;
import error.InformationException;

public interface UserLogicService extends Remote  
{
	//public Boolean login(String id,String password) throws RemoteException;
	//public Boolean changPassword(String id,String password) throws RemoteException;
	public StudentVO login(StudentVO aim) throws RemoteException;
	public TeacherVO login(TeacherVO aim) throws RemoteException;
	public boolean updateStudent(StudentVO aim) throws RemoteException;
	public boolean updateTeacher(TeacherVO aim) throws RemoteException;
	public ArrayList<TeacherVO> getTeacher(TeacherVO aim) throws RemoteException;
	public ArrayList<StudentVO> getStudent(StudentVO aim) throws RemoteException;
	public TeacherVO getTeacher(String id) throws RemoteException;
	public StudentVO getStudent(String id) throws RemoteException;
	public boolean registerStudent(StudentVO aim) throws RemoteException,InformationException;
	public boolean registerTeacher(TeacherVO aim) throws RemoteException,InformationException;
}
